/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ipo.mm.web.util;

import org.apache.struts.action.ActionForward;

/**
 *
 * @author makcro
 */
public class BreadCrumbPair {

    private String name;
    private ActionForward actionForward;

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the actionForward
     */
    public ActionForward getActionForward() {
        return actionForward;
    }

    /**
     * @param actionForward the actionForward to set
     */
    public void setActionForward(ActionForward actionForward) {
        this.actionForward = actionForward;
    }

    public BreadCrumbPair() {
    }

    public BreadCrumbPair(String name, ActionForward actionForward) {
        this.name = name;
        this.actionForward = actionForward;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof BreadCrumbPair) {
            BreadCrumbPair other = (BreadCrumbPair) obj;
            if (other.name.equals(this.name)) {
                return true;
            } else {
                return false;
            }

        } else {
            return false;
        }
    }
}
